<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Iniuriam: /home/etu/v/p1115890/LIF7/EncoreUn/iniuriam/src/menu.c File Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Iniuriam
   &#160;<span id="projectnumber">alpha 1</span>
   </div>
   <div id="projectbrief"> RPG futuriste</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">/home/etu/v/p1115890/LIF7/EncoreUn/iniuriam/src/menu.c File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="menu_8h_source.html">menu.h</a>&quot;</code><br/>
</div><table class="memberdecls">
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="menu_8c.html#a54ce2976a210c5c4cde23080274c9067">partieVide</a> (<a class="el" href="structPartie.html">Partie</a> *jeu)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : jeu n'est pas initialisé. <br/>
 Postconditions : initialise jeu.  <a href="#a54ce2976a210c5c4cde23080274c9067"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="menu_8c.html#a114606ca4d4349b341cc6fa893ac9e95">partieInit</a> (<a class="el" href="structPartie.html">Partie</a> *jeu, char nom[50], <a class="el" href="structPersonnage.html">Personnage</a> *liste, int nbJoueur, int *missionsAccomplies, int nbMission, int missionActuelle, int numCarte)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : jeu n'est pas initialisé, 0&lt;nbJoueur&lt;5, nbMission&lt;nombre de missions dans Missions.txt, missionActuelle est une mission de Missions.txt. <br/>
 Postconditions : initialise jeu avec les paramètres nom, liste, nbJoueur, missionsAccomplies, nbMission, missionActuelle.  <a href="#a114606ca4d4349b341cc6fa893ac9e95"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="menu_8c.html#a746fb9c809d30d9f24400864632d58d0">partieLibere</a> (<a class="el" href="structPartie.html">Partie</a> *jeu)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : jeu est initialisé. <br/>
 Postconditions : jeu est libéré.  <a href="#a746fb9c809d30d9f24400864632d58d0"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="menu_8c.html#a71d6a57f89b25ca85c4579c4003c9cfd">getPartieNom</a> (<a class="el" href="structPartie.html">Partie</a> *jeu, char nom[50])</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : jeu est initialisé. <br/>
 Postconditions : retourne le nombre de joueur de jeu.  <a href="#a71d6a57f89b25ca85c4579c4003c9cfd"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structPersonnage.html">Personnage</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="menu_8c.html#a8f06b47f3f3b369dae369d9efb097260">getPartieJoueurs</a> (<a class="el" href="structPartie.html">Partie</a> *jeu)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : jeu est initialisé. <br/>
 Postconditions : retourne la liste des joueurs de jeu.  <a href="#a8f06b47f3f3b369dae369d9efb097260"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structPersonnage.html">Personnage</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="menu_8c.html#a00bd2d1a1bef8b61dec552029d1ef62b">getPartieJoueurI</a> (<a class="el" href="structPartie.html">Partie</a> *jeu, int i)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : jeu est initialisé,0&lt;=i&lt;4. <br/>
 Postconditions : retourne le ieme joueur de jeu.  <a href="#a00bd2d1a1bef8b61dec552029d1ef62b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="menu_8c.html#a03c084b786edc84ca4e0eae57e6681c4">getPartieNbJoueur</a> (<a class="el" href="structPartie.html">Partie</a> *jeu)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : jeu est initialisé. <br/>
 Postconditions : retourne le nombre de joueur de jeu.  <a href="#a03c084b786edc84ca4e0eae57e6681c4"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="menu_8c.html#a2d0434f74466ce7a013623a19fc9698c">getPartieMissionAccomplie</a> (<a class="el" href="structPartie.html">Partie</a> *jeu, int i)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : jeu est initialisé,0&lt;=i&lt;nombre max de mission dans Missions.txt. <br/>
 Postconditions : retourne la ieme mission accomplie de jeu.  <a href="#a2d0434f74466ce7a013623a19fc9698c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="menu_8c.html#aaa4309914a37cd1aae3e3ab5f262eb73">getPartieNbMission</a> (<a class="el" href="structPartie.html">Partie</a> *jeu)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : jeu est initialisé. <br/>
 Postconditions : retourne le nombre de missions accomplies de jeu.  <a href="#aaa4309914a37cd1aae3e3ab5f262eb73"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="menu_8c.html#ac1a24c3a548a20ea782e94bbbca42b23">getPartieMissionActuelle</a> (<a class="el" href="structPartie.html">Partie</a> *jeu, <a class="el" href="structMission.html">Mission</a> *mission, <a class="el" href="structObjet.html">Objet</a> *tabObjet)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : jeu est initialisé, mission ne l'est pas, et tabObj contient tous les objet de Iniuriam. <br/>
 Postconditions : copie la mission actuelle de jeu dans mission.  <a href="#ac1a24c3a548a20ea782e94bbbca42b23"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="menu_8c.html#a56ce0aac1ffaeb39e8c37440e0397096">getPartieMissionActuelleType</a> (<a class="el" href="structPartie.html">Partie</a> *jeu)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : jeu est initialisé. <br/>
 Postconditions : copie la mission actuelle de jeu dans mission.  <a href="#a56ce0aac1ffaeb39e8c37440e0397096"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="menu_8c.html#a27670a9a3195bec04403006d328009ff">getPartieNumCarte</a> (<a class="el" href="structPartie.html">Partie</a> *jeu)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : jeu est initialisé. <br/>
 Postconditions : retourne le numéro de la carte actuelle de jeu.  <a href="#a27670a9a3195bec04403006d328009ff"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="menu_8c.html#aae69a1c0b58be6a4215513a28eef8520">supprimerPartie</a> (char nom[50])</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="menu_8c.html#a88880cef46a3353e6c9077f8ad8d0c8d">sauverPartie</a> (char nom[50], <a class="el" href="structPartie.html">Partie</a> *jeu)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="menu_8c.html#ae351c80a2a0bc9f4f173c4fd4337df6b">chargerPartie</a> (char nom[50], <a class="el" href="structPartie.html">Partie</a> *jeu, <a class="el" href="structObjet.html">Objet</a> *tabObjet)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="menu_8c.html#a5c634b6e4f4d5f2fa52c4b69b9974b3f">eventMenu</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : SDL est initialisé <br/>
 Postconditions : gère les évenements du menu principal du jeu. Retourne le type d'event réalisé.  <a href="#a5c634b6e4f4d5f2fa52c4b69b9974b3f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="menu_8c.html#a810f94be5c7c7b1268cad030721c9041">afficherPage</a> (SDL_Surface *ecran, TTF_Font *police, char texte_SDL[10][150], int nb, int choix, int position, int *haut, int *bas, int *page)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : police et ecran sont initalisés. nb&lt;10, 0&lt;=choix&lt;nb, position&gt;0 <br/>
 Postconditions : affiche les différentes pages du menu de création de partie d'Iniuriam. retourne 0 si l'utilisateur quitte SDL, 7 sinon.  <a href="#a810f94be5c7c7b1268cad030721c9041"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="menu_8c.html#abecef8d09f82eb3fcd26dcf15333fbcd">nouvellePartie</a> (SDL_Surface *ecran, TTF_Font *police, <a class="el" href="structPartie.html">Partie</a> *jeu, char *sauvegarde, FMOD_SYSTEM *system, <a class="el" href="structObjet.html">Objet</a> *tab)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : police, jeu et ecran sont initalisés. sauvegarde correspond à la chaine "Sauvegarde X" ou X=A, B ou C <br/>
 Postconditions : affiche les différentes pages du menu de création de partie d'Iniuriam. retourne 0 si l'utilisateur quitte SDL, 7 sinon.  <a href="#abecef8d09f82eb3fcd26dcf15333fbcd"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="menu_8c.html#a63c7494a25b6a37193da347eef16382f">afficherOptions</a> (SDL_Surface *ecran, TTF_Font *police, FMOD_SYSTEM *system, FMOD_SOUND **musique, <a class="el" href="structObjet.html">Objet</a> *tabObjet)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : police, ecran, systeme et musique sont initalisés. <br/>
 Postconditions : affiche les différentes pages du menu options d'Iniuriam. retourne 0 si l'utilisateur quitte SDL, 7 sinon.  <a href="#a63c7494a25b6a37193da347eef16382f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="menu_8c.html#af41c03a3898db6b95297e1c5d27b7247">afficherMenu</a> (SDL_Surface *ecran, char jeu, TTF_Font *police, <a class="el" href="structPartie.html">Partie</a> *partie, <a class="el" href="structObjet.html">Objet</a> *tabObjet)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : police, partie et ecran sont initalisés. <br/>
 Postconditions : affiche les différentes pages du menu principal si jeu=0 ou du menu pause d'Iniuriam sinon. retourne 0 si l'utilisateur quitte le jeu ou SDL, 9 sinon.  <a href="#af41c03a3898db6b95297e1c5d27b7247"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="menu_8c.html#ad6c980d55747ffed25753e73626ca23d">eventDebut</a> (SDL_Surface *ecran)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : SDL est initialisé <br/>
 Postconditions : gère les évenements du lancement du jeu. Retourne le type d'event réalisé.  <a href="#ad6c980d55747ffed25753e73626ca23d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="menu_8c.html#a4b19a1ffdbf883803beb19055113cabc">afficherDebut</a> (SDL_Surface *ecran, TTF_Font *police)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : police et ecran sont initalisés. <br/>
 Postconditions : affiche les pages du lancement du jeu retourne 0 si l'utilisateur quitte SDL, 1 sinon.  <a href="#a4b19a1ffdbf883803beb19055113cabc"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="menu_8c.html#a8396c50bf544009fb2fc4907b00cbad3">mainMenu</a> ()</td></tr>
</table>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="a4b19a1ffdbf883803beb19055113cabc"></a><!-- doxytag: member="menu.c::afficherDebut" ref="a4b19a1ffdbf883803beb19055113cabc" args="(SDL_Surface *ecran, TTF_Font *police)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char <a class="el" href="menu_8h.html#a4b19a1ffdbf883803beb19055113cabc">afficherDebut</a> </td>
          <td>(</td>
          <td class="paramtype">SDL_Surface *&#160;</td>
          <td class="paramname"><em>ecran</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">TTF_Font *&#160;</td>
          <td class="paramname"><em>police</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : police et ecran sont initalisés. <br/>
 Postconditions : affiche les pages du lancement du jeu retourne 0 si l'utilisateur quitte SDL, 1 sinon. </p>

</div>
</div>
<a class="anchor" id="af41c03a3898db6b95297e1c5d27b7247"></a><!-- doxytag: member="menu.c::afficherMenu" ref="af41c03a3898db6b95297e1c5d27b7247" args="(SDL_Surface *ecran, char jeu, TTF_Font *police, Partie *partie, Objet *tabObjet)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char <a class="el" href="menu_8h.html#af41c03a3898db6b95297e1c5d27b7247">afficherMenu</a> </td>
          <td>(</td>
          <td class="paramtype">SDL_Surface *&#160;</td>
          <td class="paramname"><em>ecran</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char&#160;</td>
          <td class="paramname"><em>jeu</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">TTF_Font *&#160;</td>
          <td class="paramname"><em>police</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structPartie.html">Partie</a> *&#160;</td>
          <td class="paramname"><em>partie</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structObjet.html">Objet</a> *&#160;</td>
          <td class="paramname"><em>tabObjet</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : police, partie et ecran sont initalisés. <br/>
 Postconditions : affiche les différentes pages du menu principal si jeu=0 ou du menu pause d'Iniuriam sinon. retourne 0 si l'utilisateur quitte le jeu ou SDL, 9 sinon. </p>

</div>
</div>
<a class="anchor" id="a63c7494a25b6a37193da347eef16382f"></a><!-- doxytag: member="menu.c::afficherOptions" ref="a63c7494a25b6a37193da347eef16382f" args="(SDL_Surface *ecran, TTF_Font *police, FMOD_SYSTEM *system, FMOD_SOUND **musique, Objet *tabObjet)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char <a class="el" href="menu_8h.html#a63c7494a25b6a37193da347eef16382f">afficherOptions</a> </td>
          <td>(</td>
          <td class="paramtype">SDL_Surface *&#160;</td>
          <td class="paramname"><em>ecran</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">TTF_Font *&#160;</td>
          <td class="paramname"><em>police</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FMOD_SYSTEM *&#160;</td>
          <td class="paramname"><em>system</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FMOD_SOUND **&#160;</td>
          <td class="paramname"><em>musique</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structObjet.html">Objet</a> *&#160;</td>
          <td class="paramname"><em>tabObjet</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : police, ecran, systeme et musique sont initalisés. <br/>
 Postconditions : affiche les différentes pages du menu options d'Iniuriam. retourne 0 si l'utilisateur quitte SDL, 7 sinon. </p>

</div>
</div>
<a class="anchor" id="a810f94be5c7c7b1268cad030721c9041"></a><!-- doxytag: member="menu.c::afficherPage" ref="a810f94be5c7c7b1268cad030721c9041" args="(SDL_Surface *ecran, TTF_Font *police, char texte_SDL[10][150], int nb, int choix, int position, int *haut, int *bas, int *page)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="menu_8h.html#a810f94be5c7c7b1268cad030721c9041">afficherPage</a> </td>
          <td>(</td>
          <td class="paramtype">SDL_Surface *&#160;</td>
          <td class="paramname"><em>ecran</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">TTF_Font *&#160;</td>
          <td class="paramname"><em>police</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char&#160;</td>
          <td class="paramname"><em>texte_SDL</em>[10][150], </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>nb</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>choix</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>position</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>haut</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>bas</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>page</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : police et ecran sont initalisés. nb&lt;10, 0&lt;=choix&lt;nb, position&gt;0 <br/>
 Postconditions : affiche les différentes pages du menu de création de partie d'Iniuriam. retourne 0 si l'utilisateur quitte SDL, 7 sinon. </p>

</div>
</div>
<a class="anchor" id="ae351c80a2a0bc9f4f173c4fd4337df6b"></a><!-- doxytag: member="menu.c::chargerPartie" ref="ae351c80a2a0bc9f4f173c4fd4337df6b" args="(char nom[50], Partie *jeu, Objet *tabObjet)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="menu_8c.html#ae351c80a2a0bc9f4f173c4fd4337df6b">chargerPartie</a> </td>
          <td>(</td>
          <td class="paramtype">char&#160;</td>
          <td class="paramname"><em>nom</em>[50], </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structPartie.html">Partie</a> *&#160;</td>
          <td class="paramname"><em>jeu</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structObjet.html">Objet</a> *&#160;</td>
          <td class="paramname"><em>tabObjet</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="ad6c980d55747ffed25753e73626ca23d"></a><!-- doxytag: member="menu.c::eventDebut" ref="ad6c980d55747ffed25753e73626ca23d" args="(SDL_Surface *ecran)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char <a class="el" href="menu_8h.html#ad6c980d55747ffed25753e73626ca23d">eventDebut</a> </td>
          <td>(</td>
          <td class="paramtype">SDL_Surface *&#160;</td>
          <td class="paramname"><em>ecran</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : SDL est initialisé <br/>
 Postconditions : gère les évenements du lancement du jeu. Retourne le type d'event réalisé. </p>

</div>
</div>
<a class="anchor" id="a5c634b6e4f4d5f2fa52c4b69b9974b3f"></a><!-- doxytag: member="menu.c::eventMenu" ref="a5c634b6e4f4d5f2fa52c4b69b9974b3f" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char <a class="el" href="menu_8h.html#a5c634b6e4f4d5f2fa52c4b69b9974b3f">eventMenu</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : SDL est initialisé <br/>
 Postconditions : gère les évenements du menu principal du jeu. Retourne le type d'event réalisé. </p>

</div>
</div>
<a class="anchor" id="a00bd2d1a1bef8b61dec552029d1ef62b"></a><!-- doxytag: member="menu.c::getPartieJoueurI" ref="a00bd2d1a1bef8b61dec552029d1ef62b" args="(Partie *jeu, int i)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structPersonnage.html">Personnage</a>* <a class="el" href="menu_8h.html#a00bd2d1a1bef8b61dec552029d1ef62b">getPartieJoueurI</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structPartie.html">Partie</a> *&#160;</td>
          <td class="paramname"><em>jeu</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>i</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : jeu est initialisé,0&lt;=i&lt;4. <br/>
 Postconditions : retourne le ieme joueur de jeu. </p>

</div>
</div>
<a class="anchor" id="a8f06b47f3f3b369dae369d9efb097260"></a><!-- doxytag: member="menu.c::getPartieJoueurs" ref="a8f06b47f3f3b369dae369d9efb097260" args="(Partie *jeu)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structPersonnage.html">Personnage</a>* <a class="el" href="menu_8h.html#a8f06b47f3f3b369dae369d9efb097260">getPartieJoueurs</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structPartie.html">Partie</a> *&#160;</td>
          <td class="paramname"><em>jeu</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : jeu est initialisé. <br/>
 Postconditions : retourne la liste des joueurs de jeu. </p>

</div>
</div>
<a class="anchor" id="a2d0434f74466ce7a013623a19fc9698c"></a><!-- doxytag: member="menu.c::getPartieMissionAccomplie" ref="a2d0434f74466ce7a013623a19fc9698c" args="(Partie *jeu, int i)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="menu_8h.html#a2d0434f74466ce7a013623a19fc9698c">getPartieMissionAccomplie</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structPartie.html">Partie</a> *&#160;</td>
          <td class="paramname"><em>jeu</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>i</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : jeu est initialisé,0&lt;=i&lt;nombre max de mission dans Missions.txt. <br/>
 Postconditions : retourne la ieme mission accomplie de jeu. </p>

</div>
</div>
<a class="anchor" id="ac1a24c3a548a20ea782e94bbbca42b23"></a><!-- doxytag: member="menu.c::getPartieMissionActuelle" ref="ac1a24c3a548a20ea782e94bbbca42b23" args="(Partie *jeu, Mission *mission, Objet *tabObjet)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="menu_8h.html#a50d2a41b0c88286108350b3416d02aed">getPartieMissionActuelle</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structPartie.html">Partie</a> *&#160;</td>
          <td class="paramname"><em>jeu</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structMission.html">Mission</a> *&#160;</td>
          <td class="paramname"><em>mission</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structObjet.html">Objet</a> *&#160;</td>
          <td class="paramname"><em>tabObjet</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : jeu est initialisé, mission ne l'est pas, et tabObj contient tous les objet de Iniuriam. <br/>
 Postconditions : copie la mission actuelle de jeu dans mission. </p>

</div>
</div>
<a class="anchor" id="a56ce0aac1ffaeb39e8c37440e0397096"></a><!-- doxytag: member="menu.c::getPartieMissionActuelleType" ref="a56ce0aac1ffaeb39e8c37440e0397096" args="(Partie *jeu)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="menu_8h.html#a56ce0aac1ffaeb39e8c37440e0397096">getPartieMissionActuelleType</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structPartie.html">Partie</a> *&#160;</td>
          <td class="paramname"><em>jeu</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : jeu est initialisé. <br/>
 Postconditions : copie la mission actuelle de jeu dans mission. </p>

</div>
</div>
<a class="anchor" id="a03c084b786edc84ca4e0eae57e6681c4"></a><!-- doxytag: member="menu.c::getPartieNbJoueur" ref="a03c084b786edc84ca4e0eae57e6681c4" args="(Partie *jeu)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="menu_8h.html#a03c084b786edc84ca4e0eae57e6681c4">getPartieNbJoueur</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structPartie.html">Partie</a> *&#160;</td>
          <td class="paramname"><em>jeu</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : jeu est initialisé. <br/>
 Postconditions : retourne le nombre de joueur de jeu. </p>

</div>
</div>
<a class="anchor" id="aaa4309914a37cd1aae3e3ab5f262eb73"></a><!-- doxytag: member="menu.c::getPartieNbMission" ref="aaa4309914a37cd1aae3e3ab5f262eb73" args="(Partie *jeu)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="menu_8h.html#aaa4309914a37cd1aae3e3ab5f262eb73">getPartieNbMission</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structPartie.html">Partie</a> *&#160;</td>
          <td class="paramname"><em>jeu</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : jeu est initialisé. <br/>
 Postconditions : retourne le nombre de missions accomplies de jeu. </p>

</div>
</div>
<a class="anchor" id="a71d6a57f89b25ca85c4579c4003c9cfd"></a><!-- doxytag: member="menu.c::getPartieNom" ref="a71d6a57f89b25ca85c4579c4003c9cfd" args="(Partie *jeu, char nom[50])" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="menu_8h.html#a71d6a57f89b25ca85c4579c4003c9cfd">getPartieNom</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structPartie.html">Partie</a> *&#160;</td>
          <td class="paramname"><em>jeu</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char&#160;</td>
          <td class="paramname"><em>nom</em>[50]&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : jeu est initialisé. <br/>
 Postconditions : retourne le nombre de joueur de jeu. </p>

</div>
</div>
<a class="anchor" id="a27670a9a3195bec04403006d328009ff"></a><!-- doxytag: member="menu.c::getPartieNumCarte" ref="a27670a9a3195bec04403006d328009ff" args="(Partie *jeu)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char <a class="el" href="menu_8h.html#a27670a9a3195bec04403006d328009ff">getPartieNumCarte</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structPartie.html">Partie</a> *&#160;</td>
          <td class="paramname"><em>jeu</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : jeu est initialisé. <br/>
 Postconditions : retourne le numéro de la carte actuelle de jeu. </p>

</div>
</div>
<a class="anchor" id="a8396c50bf544009fb2fc4907b00cbad3"></a><!-- doxytag: member="menu.c::mainMenu" ref="a8396c50bf544009fb2fc4907b00cbad3" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="menu_8h.html#a8396c50bf544009fb2fc4907b00cbad3">mainMenu</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="abecef8d09f82eb3fcd26dcf15333fbcd"></a><!-- doxytag: member="menu.c::nouvellePartie" ref="abecef8d09f82eb3fcd26dcf15333fbcd" args="(SDL_Surface *ecran, TTF_Font *police, Partie *jeu, char *sauvegarde, FMOD_SYSTEM *system, Objet *tab)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char <a class="el" href="menu_8h.html#abecef8d09f82eb3fcd26dcf15333fbcd">nouvellePartie</a> </td>
          <td>(</td>
          <td class="paramtype">SDL_Surface *&#160;</td>
          <td class="paramname"><em>ecran</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">TTF_Font *&#160;</td>
          <td class="paramname"><em>police</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structPartie.html">Partie</a> *&#160;</td>
          <td class="paramname"><em>jeu</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>sauvegarde</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FMOD_SYSTEM *&#160;</td>
          <td class="paramname"><em>system</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structObjet.html">Objet</a> *&#160;</td>
          <td class="paramname"><em>tab</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : police, jeu et ecran sont initalisés. sauvegarde correspond à la chaine "Sauvegarde X" ou X=A, B ou C <br/>
 Postconditions : affiche les différentes pages du menu de création de partie d'Iniuriam. retourne 0 si l'utilisateur quitte SDL, 7 sinon. </p>

</div>
</div>
<a class="anchor" id="a114606ca4d4349b341cc6fa893ac9e95"></a><!-- doxytag: member="menu.c::partieInit" ref="a114606ca4d4349b341cc6fa893ac9e95" args="(Partie *jeu, char nom[50], Personnage *liste, int nbJoueur, int *missionsAccomplies, int nbMission, int missionActuelle, int numCarte)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="menu_8h.html#a114606ca4d4349b341cc6fa893ac9e95">partieInit</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structPartie.html">Partie</a> *&#160;</td>
          <td class="paramname"><em>jeu</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char&#160;</td>
          <td class="paramname"><em>nom</em>[50], </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structPersonnage.html">Personnage</a> *&#160;</td>
          <td class="paramname"><em>liste</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>nbJoueur</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>missionsAccomplies</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>nbMission</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>missionActuelle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>numCarte</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : jeu n'est pas initialisé, 0&lt;nbJoueur&lt;5, nbMission&lt;nombre de missions dans Missions.txt, missionActuelle est une mission de Missions.txt. <br/>
 Postconditions : initialise jeu avec les paramètres nom, liste, nbJoueur, missionsAccomplies, nbMission, missionActuelle. </p>

</div>
</div>
<a class="anchor" id="a746fb9c809d30d9f24400864632d58d0"></a><!-- doxytag: member="menu.c::partieLibere" ref="a746fb9c809d30d9f24400864632d58d0" args="(Partie *jeu)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="menu_8h.html#a746fb9c809d30d9f24400864632d58d0">partieLibere</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structPartie.html">Partie</a> *&#160;</td>
          <td class="paramname"><em>jeu</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : jeu est initialisé. <br/>
 Postconditions : jeu est libéré. </p>

</div>
</div>
<a class="anchor" id="a54ce2976a210c5c4cde23080274c9067"></a><!-- doxytag: member="menu.c::partieVide" ref="a54ce2976a210c5c4cde23080274c9067" args="(Partie *jeu)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="menu_8h.html#a54ce2976a210c5c4cde23080274c9067">partieVide</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structPartie.html">Partie</a> *&#160;</td>
          <td class="paramname"><em>jeu</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : jeu n'est pas initialisé. <br/>
 Postconditions : initialise jeu. </p>
<dl class="author"><dt><b>Author:</b></dt><dd>RODARIE Dimitri, VERSAEVEL Romain, FLORES Isabelle </dd></dl>

</div>
</div>
<a class="anchor" id="a88880cef46a3353e6c9077f8ad8d0c8d"></a><!-- doxytag: member="menu.c::sauverPartie" ref="a88880cef46a3353e6c9077f8ad8d0c8d" args="(char nom[50], Partie *jeu)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="menu_8c.html#a88880cef46a3353e6c9077f8ad8d0c8d">sauverPartie</a> </td>
          <td>(</td>
          <td class="paramtype">char&#160;</td>
          <td class="paramname"><em>nom</em>[50], </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structPartie.html">Partie</a> *&#160;</td>
          <td class="paramname"><em>jeu</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="aae69a1c0b58be6a4215513a28eef8520"></a><!-- doxytag: member="menu.c::supprimerPartie" ref="aae69a1c0b58be6a4215513a28eef8520" args="(char nom[50])" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="menu_8c.html#aae69a1c0b58be6a4215513a28eef8520">supprimerPartie</a> </td>
          <td>(</td>
          <td class="paramtype">char&#160;</td>
          <td class="paramname"><em>nom</em>[50]</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
</div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Tue Jun 4 2013 08:45:33 for Iniuriam by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
